public void Load<NodeDataType>( XContainer root, Func<XElement,NodeDataType> nodedataallocator ) where NodeDataType: TreeModelNodeData<NodeKey>
Parameters
- root
- the
XContainer
holding all of the data - nodedataallocator
- a function that takes an
XElement
and returns either a newly constructed object of type NodeDataType or null if thatXElement
is to be ignored
Type Parameters
- NodeDataType
- this must be a class inheriting from TreeModelNodeData<NodeKey>